<template>
  <div class="NoteComponent">
    <div class="mask" v-if="isShow" @click="closeModule()"></div>
    <div class="out">
      <div class="nodeList" v-for="(n, index) in notes" v-bind:key="index" @click="showNodeInfo(n)">
        <div class="nodeCont">
          <div class="nodeLeft">{{n.main}}</div>
          <div class="nodeRight">{{n.date | transformDate}}</div>
        </div>
      </div>
    </div>
    <div class="moduleBox" v-if="isShow">
      <i class="el-icon-close" @click="closeModule()"></i>
      <div class="note">{{note}}</div>
      <div class="date">- {{date}}</div>
    </div>
  </div>
</template>

<script src="./NoteComponent.js"></script>

<style lang="scss">
@import "./NoteComponent.scss"
</style>
